package com.firebugsoft.calc.dubbo.consumer.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.firebugsoft.calc.dubbo.api.service.ICalcService;
import org.springframework.stereotype.Service;

@Service
public class ProxyService {
    @Reference
    private ICalcService calcService;

    public double add(double a, double b) {
        return calcService.add(a, b);
    }
    public double sub(double a, double b) {
        return calcService.sub(a, b);
    }
    public double mul(double a, double b) {
        return calcService.mul(a, b);
    }
    public double div(double a, double b) {
        return calcService.div(a, b);
    }
}
